<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <h1>The Goods Page</h1>
        <a th:href="@{/goods/doGoodsAddUI}">添加商品</a>
        <a href="/goods/doGoodsAddUI">添加</a>
        <table>
            <thead>
                <tr>
                    <td>id</td>
                    <td>name</td>
                    <td>remark</td>
                    <td>createdTime</td>
                    <td colspan="2">operation</td>
                </tr>
            </thead>
            <tbody>

                <tr th:each="g:${goodsList}">
                    <td th:text="${g.id}">id</td>
                    <td th:text="${g.name}">name</td>
                    <td th:text="${g.remark}">remark</td>
                    <td th:text="${#dates.format(g.createdTime,'yyyy/MM/dd HH:mm')}">createdTime</td>
                    <td ><a th:href="@{/goods/doDeleteById/{id}(id=${g.id})}">delete</a> </td>
                    <td ><a th:href="@{/goods/doFindById/{id}(id=${g.id})}">update</a> </td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>